import xml.sax.handler
import xml.sax.xmlreader

class MsgHandler(xml.sax.handler.ContentHandler) :
    def __init__(self) :
        """
        message handler
        """
        self.tag = "unknown"

    def startElement(self, name, attributes) :
        if name == "chat" :
            self.tag = name;
            self.msg = attributes["msg"]
            

        
            
            
            


